<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Freetype OpenGL: markup.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="style.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="content"><!-- do not remove this div! -->

<div id="top"><!-- do not remove this div! -->

  
  <div id="titlearea">
    
    <div id="projectname">Freetype OpenGL</div>
    
    
    <div id="projectbrief">A high quality OpenGL text rendering engine for C</div>
    
  </div>
  

<!--

<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Freetype OpenGL
   &#160;<span id="projectnumber">0.1</span>
   </div>
   <div id="projectbrief">A high quality OpenGL text rendering engine for C</div>
  </td>
  
  
  
   
  
 </tr>
 </tbody>
</table>
</div>
-->


<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript" src="dynsections.js"></script>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">markup.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="markup_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* =========================================================================</span>
<a name="l00002"></a>00002 <span class="comment"> * Freetype GL - A C OpenGL Freetype engine</span>
<a name="l00003"></a>00003 <span class="comment"> * Platform:    Any</span>
<a name="l00004"></a>00004 <span class="comment"> * WWW:         http://code.google.com/p/freetype-gl/</span>
<a name="l00005"></a>00005 <span class="comment"> * -------------------------------------------------------------------------</span>
<a name="l00006"></a>00006 <span class="comment"> * Copyright 2011,2012 Nicolas P. Rougier. All rights reserved.</span>
<a name="l00007"></a>00007 <span class="comment"> *</span>
<a name="l00008"></a>00008 <span class="comment"> * Redistribution and use in source and binary forms, with or without</span>
<a name="l00009"></a>00009 <span class="comment"> * modification, are permitted provided that the following conditions are met:</span>
<a name="l00010"></a>00010 <span class="comment"> *</span>
<a name="l00011"></a>00011 <span class="comment"> *  1. Redistributions of source code must retain the above copyright notice,</span>
<a name="l00012"></a>00012 <span class="comment"> *     this list of conditions and the following disclaimer.</span>
<a name="l00013"></a>00013 <span class="comment"> *</span>
<a name="l00014"></a>00014 <span class="comment"> *  2. Redistributions in binary form must reproduce the above copyright</span>
<a name="l00015"></a>00015 <span class="comment"> *     notice, this list of conditions and the following disclaimer in the</span>
<a name="l00016"></a>00016 <span class="comment"> *     documentation and/or other materials provided with the distribution.</span>
<a name="l00017"></a>00017 <span class="comment"> *</span>
<a name="l00018"></a>00018 <span class="comment"> * THIS SOFTWARE IS PROVIDED BY NICOLAS P. ROUGIER &#39;&#39;AS IS&#39;&#39; AND ANY EXPRESS OR</span>
<a name="l00019"></a>00019 <span class="comment"> * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF</span>
<a name="l00020"></a>00020 <span class="comment"> * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO</span>
<a name="l00021"></a>00021 <span class="comment"> * EVENT SHALL NICOLAS P. ROUGIER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,</span>
<a name="l00022"></a>00022 <span class="comment"> * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES</span>
<a name="l00023"></a>00023 <span class="comment"> * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;</span>
<a name="l00024"></a>00024 <span class="comment"> * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND</span>
<a name="l00025"></a>00025 <span class="comment"> * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span>
<a name="l00026"></a>00026 <span class="comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF</span>
<a name="l00027"></a>00027 <span class="comment"> * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span>
<a name="l00028"></a>00028 <span class="comment"> *</span>
<a name="l00029"></a>00029 <span class="comment"> * The views and conclusions contained in the software and documentation are</span>
<a name="l00030"></a>00030 <span class="comment"> * those of the authors and should not be interpreted as representing official</span>
<a name="l00031"></a>00031 <span class="comment"> * policies, either expressed or implied, of Nicolas P. Rougier.</span>
<a name="l00032"></a>00032 <span class="comment"> * ========================================================================= */</span>
<a name="l00033"></a>00033 <span class="preprocessor">#ifndef __MARKUP_H__</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span><span class="preprocessor">#define __MARKUP_H__</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span>
<a name="l00036"></a>00036 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {
<a name="l00038"></a>00038 <span class="preprocessor">#endif</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span>
<a name="l00040"></a>00040 <span class="preprocessor">#include &quot;<a class="code" href="texture-font_8h.html">texture-font.h</a>&quot;</span>
<a name="l00041"></a>00041 <span class="preprocessor">#include &quot;vec234.h&quot;</span>
<a name="l00042"></a>00042 
<a name="l00087"></a><a class="code" href="structmarkup__t.html">00087</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00088"></a>00088 {
<a name="l00092"></a><a class="code" href="structmarkup__t.html#adcb67782935faf6178ef7afde350ca2a">00092</a>     <span class="keywordtype">char</span> * <a class="code" href="structmarkup__t.html#adcb67782935faf6178ef7afde350ca2a" title="A font family name such as &quot;normal&quot;, &quot;sans&quot;, &quot;serif&quot; or &quot;monospace&quot;.">family</a>;
<a name="l00093"></a>00093 
<a name="l00097"></a><a class="code" href="structmarkup__t.html#a32a7c723e03431ac36ce55a7806783d7">00097</a>     <span class="keywordtype">float</span> <a class="code" href="structmarkup__t.html#a32a7c723e03431ac36ce55a7806783d7" title="Font size.">size</a>;
<a name="l00098"></a>00098 
<a name="l00102"></a><a class="code" href="structmarkup__t.html#a2f3767ea0ddd6e83154daad12cc4d2d0">00102</a>     <span class="keywordtype">int</span> <a class="code" href="structmarkup__t.html#a2f3767ea0ddd6e83154daad12cc4d2d0" title="Whether text is bold.">bold</a>;
<a name="l00103"></a>00103 
<a name="l00107"></a><a class="code" href="structmarkup__t.html#a343eab20b2c5cb225e4b9969bd034642">00107</a>     <span class="keywordtype">int</span> <a class="code" href="structmarkup__t.html#a343eab20b2c5cb225e4b9969bd034642" title="Whether text is italic.">italic</a>;
<a name="l00108"></a>00108 
<a name="l00112"></a><a class="code" href="structmarkup__t.html#ad973f8ef4ba1dd1bbfeebb66f22ccc04">00112</a>     <span class="keywordtype">float</span> <a class="code" href="structmarkup__t.html#ad973f8ef4ba1dd1bbfeebb66f22ccc04" title="Vertical displacement from the baseline.">rise</a>;
<a name="l00113"></a>00113 
<a name="l00117"></a><a class="code" href="structmarkup__t.html#af41c01f5a6be19a30d81a07423186177">00117</a>     <span class="keywordtype">float</span> <a class="code" href="structmarkup__t.html#af41c01f5a6be19a30d81a07423186177" title="Spacing between letters.">spacing</a>;
<a name="l00118"></a>00118 
<a name="l00122"></a><a class="code" href="structmarkup__t.html#a37164c55ed3ed10f00ce0b2da6b9d2f5">00122</a>     <span class="keywordtype">float</span> <a class="code" href="structmarkup__t.html#a37164c55ed3ed10f00ce0b2da6b9d2f5" title="Gamma correction.">gamma</a>;
<a name="l00123"></a>00123 
<a name="l00127"></a><a class="code" href="structmarkup__t.html#a04c930fd29432569aee47e56b59e3d79">00127</a>     <a class="code" href="unionvec4.html" title="Tuple of 4 floats.">vec4</a> <a class="code" href="structmarkup__t.html#a04c930fd29432569aee47e56b59e3d79" title="Text color.">foreground_color</a>;
<a name="l00128"></a>00128 
<a name="l00132"></a><a class="code" href="structmarkup__t.html#a188c090aade110f71252dd3f28a4b9c7">00132</a>     <a class="code" href="unionvec4.html" title="Tuple of 4 floats.">vec4</a> <a class="code" href="structmarkup__t.html#a188c090aade110f71252dd3f28a4b9c7" title="Background color.">background_color</a>;
<a name="l00133"></a>00133 
<a name="l00137"></a><a class="code" href="structmarkup__t.html#a0e333ee534d450f26cb6e3acb12b9bb9">00137</a>     <span class="keywordtype">int</span> <a class="code" href="structmarkup__t.html#a0e333ee534d450f26cb6e3acb12b9bb9" title="Whether outline is active.">outline</a>;
<a name="l00138"></a>00138 
<a name="l00142"></a><a class="code" href="structmarkup__t.html#a9a648ea55728ce5555753c0b0c0dc6a8">00142</a>     <a class="code" href="unionvec4.html" title="Tuple of 4 floats.">vec4</a> <a class="code" href="structmarkup__t.html#a9a648ea55728ce5555753c0b0c0dc6a8" title="Outline color.">outline_color</a>;
<a name="l00143"></a>00143 
<a name="l00147"></a><a class="code" href="structmarkup__t.html#a84af8287dddba1d14190dd33f76af955">00147</a>     <span class="keywordtype">int</span> <a class="code" href="structmarkup__t.html#a84af8287dddba1d14190dd33f76af955" title="Whether underline is active.">underline</a>;
<a name="l00148"></a>00148 
<a name="l00152"></a><a class="code" href="structmarkup__t.html#a1a14c4fb87e2224381288a24f56526c8">00152</a>     <a class="code" href="unionvec4.html" title="Tuple of 4 floats.">vec4</a> <a class="code" href="structmarkup__t.html#a1a14c4fb87e2224381288a24f56526c8" title="Underline color.">underline_color</a>;
<a name="l00153"></a>00153 
<a name="l00157"></a><a class="code" href="structmarkup__t.html#a678b7a967e3d8bf13400ed72216f7f88">00157</a>     <span class="keywordtype">int</span> <a class="code" href="structmarkup__t.html#a678b7a967e3d8bf13400ed72216f7f88" title="Whether overline is active.">overline</a>;
<a name="l00158"></a>00158 
<a name="l00162"></a><a class="code" href="structmarkup__t.html#a0ed25bfa8bc6ead84ae5c0e31dadc780">00162</a>     <a class="code" href="unionvec4.html" title="Tuple of 4 floats.">vec4</a> <a class="code" href="structmarkup__t.html#a0ed25bfa8bc6ead84ae5c0e31dadc780" title="Overline color.">overline_color</a>;
<a name="l00163"></a>00163 
<a name="l00167"></a><a class="code" href="structmarkup__t.html#a78e8996a06c5bce517be27cf7339c97c">00167</a>     <span class="keywordtype">int</span> <a class="code" href="structmarkup__t.html#a78e8996a06c5bce517be27cf7339c97c" title="Whether strikethrough is active.">strikethrough</a>;
<a name="l00168"></a>00168 
<a name="l00172"></a><a class="code" href="structmarkup__t.html#a29192ea5e970414c0f2b6596e04b822c">00172</a>     <a class="code" href="unionvec4.html" title="Tuple of 4 floats.">vec4</a> <a class="code" href="structmarkup__t.html#a29192ea5e970414c0f2b6596e04b822c" title="Strikethrough color.">strikethrough_color</a>;
<a name="l00173"></a>00173 
<a name="l00177"></a><a class="code" href="structmarkup__t.html#a5c61d3d8f7da003b885a413780240318">00177</a>     <a class="code" href="structtexture__font__t.html" title="Texture font structure.">texture_font_t</a> * <a class="code" href="structmarkup__t.html#a5c61d3d8f7da003b885a413780240318" title="Pointer on the corresponding font (family/size/bold/italic)">font</a>;
<a name="l00178"></a>00178 
<a name="l00179"></a>00179 } <a class="code" href="structmarkup__t.html" title="Simple structure that describes text properties.">markup_t</a>;
<a name="l00180"></a>00180 
<a name="l00183"></a>00183 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00184"></a>00184 <span class="preprocessor"></span>}
<a name="l00185"></a>00185 <span class="preprocessor">#endif</span>
<a name="l00186"></a>00186 <span class="preprocessor"></span>
<a name="l00187"></a>00187 <span class="preprocessor">#endif </span><span class="comment">/* __MARKUP_H__ */</span>
</pre></div></div><!-- contents -->
</div>
</body>
</html>
